package auto.app.service;

import auto.app.controller.from.DatabaseConnect.DatabaseConnectionAdd;
import auto.app.controller.from.DatabaseConnect.DatabaseConnectionUpdate;
import auto.app.exetion.MainExection;
import auto.app.model.DatabaseConnect;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-10-17
 */
public interface DatabaseConnectService extends IService<DatabaseConnect> {

    public Boolean addDatabaseConnect(DatabaseConnectionAdd databaseConnectionAdd) throws MainExection;


    public Boolean deleteDatabaseConnect(String databaseId) throws MainExection;


    public Boolean updateDatabaseConnect(DatabaseConnectionUpdate databaseConnectionUpdate) throws MainExection;

    public List<DatabaseConnect> listDatabaseConnect(Integer caseId);

    public Boolean stateDatabaseConnect(String databaseId) throws MainExection;

    public List<DatabaseConnect> listDatabaseConnectState(Integer caseId);
}
